package com.qf.pickname.interceptor;


import com.qf.pickname.utils.HttpCountAndTimeStore;
import com.qf.pickname.vo.ResultVo;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api")
public class TimerController02 {

    @RequestMapping("/analyze")
    public ResultVo RequestCountAndAvgTime(){
        ResultVo resultVo = new ResultVo(1, "获取成功!");

        resultVo.setData(HttpCountAndTimeStore.theRequests);

        return resultVo;


    }
}
